{% extends "base.admin.html" %}
{% block body %}
<div id="content" class="container">
<img class="billion" src="/static/images/one-billion-apps-hero-20090418.png" alt="A billion apps." height="403" width="730"/>
<h1>Admin Console</h1>
	<div class="apps android">
	{% if apps_android %}
		<ul class="applist">
		{% for app in apps_android %}
			<li>
					<img src="{{app.icon}}"/>
					<div class="name">{{app.displayname}}</div>
					<div class="action">
						<span><a href="/admin/android/{{app.name}}?action=edit" class="edit">Edit</a></span>
						{% if app.active %}
						<span><a href="/admin/android/{{app.name}}?action=active&active=false" class="active">Disable</a></span>
						{% else %}
						<span><a href="/admin/android/{{app.name}}?action=active&active=true" class="active">Enable</a></span>
						{% endif %}
						<span><a href="/admin/screen/{{app.name}}?type=android">Screen Snaps</a></span>
					</div>
				</li>
		{% endfor %}
		</ul>
	{% else %}
		<div class="noapp">Currently, there is no any Android app.</div>
	{% endif %}
		<div class="addapp"><a href="/admin/addapp?type=android">Add App</a></div>
	</div>
	<div class="apps iphone">
		{% if apps_iphone %}
			<ul class="applist">
			{% for app in apps_iphone %}
				<li>
					<img src="{{app.icon}}"/>
					<div class="name">{{app.displayname}}</div>
					<div class="action">
						<span><a href="/admin/iphone/{{app.name}}?action=edit" class="edit">Edit</a></span>
						{% if app.active %}
						<span><a href="/admin/iphone/{{app.name}}?action=active&active=false" class="active">Disable</a></span>
						{% else %}
						<span><a href="/admin/iphone/{{app.name}}?action=active&active=true" class="active">Enable</a></span>
						{% endif %}
						<span><a href="/admin/screen/{{app.name}}?type=iphone">Screen Snaps</a></span>
					</div>
				</li>
			{% endfor %}
			</ul>
		{% else %}
			<div class="noapp">Currently, there is no any iPhone app.</div>
		{% endif %}
			<div class="addapp"><a href="/admin/addapp?type=iphone">Add App</a></div>
	</div>
</div>
{% endblock %}